package com.lin.services;

import com.lin.pojo.Category;

import java.util.List;
import java.util.Map;

/**
 * ClassName:ICategoryService
 * Package:com.lin.services
 * Author: hellcat
 * Date: 2019/12/22
 * ♣♣♣
 */
public interface CategoryService {

    List<Map<String, Object>> getAllCategory();

    List<Category> getCategory1();

    Map<String,Object> getCategory2(Integer parentCategoryId);

    Map<String, Object> insertCategory(String parentCategoryId, String categoryName);

    Map<String, Object> updateCategory(String parentCategoryId, String categoryId, String categoryName);

    Map<String, Object> deleteCategory(String parentCategoryId, String categoryId);


}
